import colors from '../js/colors';

cc.Class({
    extends: cc.Component,

    properties: {
        numberLaber: cc.Label
    },



    start() {


    },

    setNumber(number) {
        if (number == 0) {
            this.numberLaber.node.active = false;
        }
        this.numberLaber.string = number;

        if (number in colors) {
            this.node.color = colors[number];
        }

    }

    // update (dt) {},
});